package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterIdentifytaskCreateRequest struct {
	/*
	   工单列表     */
	WorkcardIds *[]int64 `json:"workcard_ids" required:"true" `
	/*
	   是否改派 defalutValue��false    */
	Reassign *bool `json:"reassign,omitempty" required:"false" `
	/*
	   服务商自定义的外部核销单id     */
	OuterId *string `json:"outer_id" required:"true" `
}

func (s *TmallServicecenterIdentifytaskCreateRequest) SetWorkcardIds(v []int64) *TmallServicecenterIdentifytaskCreateRequest {
	s.WorkcardIds = &v
	return s
}
func (s *TmallServicecenterIdentifytaskCreateRequest) SetReassign(v bool) *TmallServicecenterIdentifytaskCreateRequest {
	s.Reassign = &v
	return s
}
func (s *TmallServicecenterIdentifytaskCreateRequest) SetOuterId(v string) *TmallServicecenterIdentifytaskCreateRequest {
	s.OuterId = &v
	return s
}

func (req *TmallServicecenterIdentifytaskCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardIds != nil {
		paramMap["workcard_ids"] = util.ConvertBasicList(*req.WorkcardIds)
	}
	if req.Reassign != nil {
		paramMap["reassign"] = *req.Reassign
	}
	if req.OuterId != nil {
		paramMap["outer_id"] = *req.OuterId
	}
	return paramMap
}

func (req *TmallServicecenterIdentifytaskCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
